package com.tongtech.knowledge.domain;

import com.tongtech.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 知识库表 knowledge
 *
 * @author xingyc
 */
public class Knowledge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 知识库id */
    private Long knowledgeId;

    /** 知识库分类，预留字段 */
    private String knowledgeCategory;

    /** 知识库标题 */
    private String title;

    /** 知识库内容，md格式 */
    private String content;

    /** 浏览次数 */
    private Long viewNum;

    /** 版本号 */
    private Integer version;

    /** 知识库信息状态:0-正常,1-停用 */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public Long getKnowledgeId() {
        return knowledgeId;
    }

    public void setKnowledgeId(Long knowledgeId) {
        this.knowledgeId = knowledgeId;
    }

    public String getKnowledgeCategory() {
        return knowledgeCategory;
    }

    public void setKnowledgeCategory(String knowledgeCategory) {
        this.knowledgeCategory = knowledgeCategory;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getViewNum() {
        return viewNum;
    }

    public void setViewNum(Long viewNum) {
        this.viewNum = viewNum;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("knowledgeId", getKnowledgeId())
            .append("knowledgeCategory", getKnowledgeCategory())
            .append("title", getTitle())
            .append("content", getContent())
            .append("viewNum", getViewNum())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
